package com.AEWMS.Test;

import com.AEWMS.Dao.Attendance;
import com.AEWMS.Pojo.StudentAttendanceStatisticsView;
import com.AEWMS.Service.AttendanceWarningService;
import com.alibaba.fastjson.JSON;

public class AttendWarningTest {
    public static void main(String[] args) {
        AttendanceWarningService a = new AttendanceWarningService();
        Attendance t =new Attendance();
        System.out.println(JSON.toJSONString((a.findAllAttendStat())));
        System.out.println(JSON.toJSONString(a.findAttendStatById("117583010123")));
//        t.setStudentNumber("117583030114");//必须在student表中有这个id才能加
//        t.setSemester("2");
//        t.setWeek("1");
//        t.setAttendanceTypeId("3");
//
//
////        System.out.println(a.updateAttend(t));//三个参数，学期id、周数不能重复，不然结果会返回false，因为影响了多行
//        System.out.println(a.deleteAttendById(t));
    }
}
